projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d10072
)
(try_window): Clear mouse-face highlights first.
author
Chong Yidong
<cyd@stupidchicken.com>
Sat, 20 Jan 2007 21:03:22 +0000
(21:03 +0000)
committer
Chong Yidong
<cyd@stupidchicken.com>
Sat, 20 Jan 2007 21:03:22 +0000
(21:03 +0000)
src/xdisp.c
patch
|
blob
|
history
diff --git
a/src/xdisp.c
b/src/xdisp.c
index e4b5dec795914e3750cac567d7d5555963c6a223..3cebb17cd9e75bd4fa41e36f86ea472e4d7f6a47 100644
(file)
--- a/
src/xdisp.c
+++ b/
src/xdisp.c
@@
-13538,6
+13538,15
@@
try_window (window, pos, check_margins)
struct window *w = XWINDOW (window);
struct it it;
struct glyph_row *last_text_row = NULL;
+ struct frame *f = XFRAME (w->frame);
+
+ /* Clear any existing mouse-face highlights. */
+ if (FRAME_WINDOW_P (f))
+ {
+ update_begin (f);
+ rif->clear_window_mouse_face (w);
+ update_end (f);
+ }
/* Make POS the new window start. */
set_marker_both (w->start, Qnil, CHARPOS (pos), BYTEPOS (pos));